package grape.base.service.message.po;

import grape.common.service.po.NormalBasePo;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户消息读取状态表
 * </p>
 *
 * @author yangwei
 * @since 2020-03-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_message_user_state")
public class MessageUserState extends NormalBasePo<MessageUserState> {

    private static final long serialVersionUID = 1L;

    /**
     * 消息表主键
     */
    private String messageId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 是否已读，1=已读，0=未读
     */
    private Boolean isRead;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
